<?php
require_once('class_img.php');
 
$t = new ThumbHandler();
 
$t->setSrcImg("img/Sunset.jpg");
$t->setDstImg("img/new_test.jpg");
//$t->setCutType(2);//指明为手工裁切
//$t->setSrcCutPosition(0, 0);// 源图起点坐标
//$t->setRectangleCut(300, 200);// 裁切尺寸
$t->createImg(400,500);

?>